home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 April / CHIP CD (4 - 2007).iso / beeld / 3d / ArtOfIllusion24-Mac.dmg / Art of Illusion / ArtOfIllusion.jar / keystrokes.xml < prev   
Text File  |  2006-12-09  |  4KB  |  59 lines

  1. <keystrokes><keystroke name="Delete Selection" code="8" modifiers="0">if (window instanceof LayoutWindow)
  2. {
  3.     score = window.getScore();
  4.     if (score.getSelectedKeyframes().length == 0)
  5.         window.clearCommand();
  6.     else
  7.         score.deleteSelectedKeyframes();
  8. }
  9. else if (window instanceof MeshEditorWindow)
  10. {
  11.     if (window.getToolPalette().getSelectedTool() instanceof artofillusion.animation.SkeletonTool)
  12.         window.deleteJointCommand();
  13.     else
  14.         window.deleteCommand();
  15. }</keystroke><keystroke name="Display Mode: Flat" code="50" modifiers="0">window.getView().setRenderMode(ViewerCanvas.RENDER_FLAT);
  16. window.updateMenus();</keystroke><keystroke name="Display Mode: Smooth" code="51" modifiers="0">window.getView().setRenderMode(ViewerCanvas.RENDER_SMOOTH);
  17. window.updateMenus();</keystroke><keystroke name="Display Mode: Textured" code="52" modifiers="0">window.getView().setRenderMode(ViewerCanvas.RENDER_TEXTURED);
  18. window.updateMenus();</keystroke><keystroke name="Display Mode: Transparent" code="53" modifiers="0">window.getView().setRenderMode(ViewerCanvas.RENDER_TRANSPARENT);
  19. window.updateMenus();</keystroke><keystroke name="Display Mode: Wireframe" code="49" modifiers="0">window.getView().setRenderMode(ViewerCanvas.RENDER_WIREFRAME);
  20. window.updateMenus();</keystroke><keystroke name="Select Tool: Next" code="34" modifiers="0">tools = window.getToolPalette();
  21. selected = tools.getSelection();
  22. selected = (selected == tools.getNumTools()-1 ? 0 : selected+1);
  23. tools.selectTool(tools.getTool(selected));</keystroke><keystroke name="Select Tool: Previous" code="33" modifiers="0">tools = window.getToolPalette();
  24. selected = tools.getSelection();
  25. selected = (selected == 0 ? tools.getNumTools()-1 : selected-1);
  26. tools.selectTool(tools.getTool(selected));</keystroke><keystroke name="Select Tool: Toggle Default" code="32" modifiers="0">tools = window.getToolPalette();
  27. tools.toggleDefaultTool();
  28. window.setTool(tools.getSelectedTool());
  29. </keystroke><keystroke name="Selection Mode: Edge/Curve" code="69" modifiers="0">if (window instanceof MeshEditController)
  30.   window.setSelectionMode(MeshEditController.EDGE_MODE);</keystroke><keystroke name="Selection Mode: Face" code="70" modifiers="0">if (window instanceof MeshEditController)
  31.   window.setSelectionMode(MeshEditController.FACE_MODE);</keystroke><keystroke name="Selection Mode: Point/Vertex" code="86" modifiers="0">if (window instanceof MeshEditController)
  32.   window.setSelectionMode(MeshEditController.POINT_MODE);</keystroke><keystroke name="View: Back" code="98" modifiers="0">window.getView().selectOrientation(ViewerCanvas.VIEW_BACK);</keystroke><keystroke name="View: Bottom" code="102" modifiers="0">window.getView().selectOrientation(ViewerCanvas.VIEW_BOTTOM);</keystroke><keystroke name="View: Camera 1" code="103" modifiers="0">window.getView().selectOrientation(6);</keystroke><keystroke name="View: Camera 2" code="104" modifiers="0">window.getView().selectOrientation(7);</keystroke><keystroke name="View: Front" code="97" modifiers="0">window.getView().selectOrientation(ViewerCanvas.VIEW_FRONT);</keystroke><keystroke name="View: Left" code="99" modifiers="0">window.getView().selectOrientation(ViewerCanvas.VIEW_LEFT);</keystroke><keystroke name="View: Right" code="100" modifiers="0">window.getView().selectOrientation(ViewerCanvas.VIEW_RIGHT);</keystroke><keystroke name="View: Toggle Perspective" code="96" modifiers="0">view = window.getView();
  33. view.setPerspective(!view.isPerspective());</keystroke><keystroke name="View: Top" code="101" modifiers="0">window.getView().selectOrientation(ViewerCanvas.VIEW_TOP);</keystroke><keystroke name="View: Zoom In" code="107" modifiers="0">view = window.getView();
  34. if (view.isPerspective())
  35. {
  36.     camera = view.getCamera();
  37.     coords = camera.getCameraCoordinates();
  38.     delta = coords.getZDirection().times(0.1);
  39.     coords.setOrigin(coords.getOrigin().plus(delta));
  40.     camera.setCameraCoordinates(coords);
  41.     view.repaint();
  42. }
  43. else
  44. {
  45.     view.setScale(view.getScale()/0.99);
  46. }</keystroke><keystroke name="View: Zoom Out" code="109" modifiers="0">view = window.getView();
  47. if (view.isPerspective())
  48. {
  49.     camera = view.getCamera();
  50.     coords = camera.getCameraCoordinates();
  51.     delta = coords.getZDirection().times(0.1);
  52.     coords.setOrigin(coords.getOrigin().minus(delta));
  53.     camera.setCameraCoordinates(coords);
  54.     view.repaint();
  55. }
  56. else
  57. {
  58.     view.setScale(view.getScale()*0.99);
  59. }</keystroke></keystrokes>